package com.ruoyi.system.task;

import com.ruoyi.base.service.ISSerialService;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

@Component("systemTask")
public class SystemTask {

    public void ryNoParams() {
        System.out.println("执行无参方法" + new Date().getTime());
    }

    @Autowired
    ISSerialService serialService;

    public void updateSerial(String type){
        serialService.updateSerialCron(type);
    }

}
